import request from '@/utils/request'

// 查询客户订单列表
export function listOrders(query) {
  return request({
    url: '/service/orders/list',
    method: 'get',
    params: query
  })
}

// 查询自动排产配置列表
export function autoSchedulingList(query) {
  return request({
    url: '/service/config-center/auto-scheduling/list',
    method: 'get',
    params: query
  })
}

// 加入自动排产-上移下移
export function orderMove(data) {
  return request({
    url: '/service/orders/move',
    method: 'post',
    data
  })
}

// 加入自动排产-移除
export function ordersExclude({ orderId }) {
  return request({
    url: '/service/orders/exclude/' + orderId,
    method: 'get',
  })
}

// 加入自动排产-新增
export function ordersScheduling(data) {
  return request({
    url: '/service/orders/scheduling',
    method: 'post',
    data
  })
}

// 加入自动排产-新增
export function productionPlan(data) {
  return request({
    url: '/service/orders/production/plan',
    method: 'post',
    data
  })
}


